# Color Class

**Description:**

&emsp;&emsp;Provides methods for creating Color objects.

## __call

**Type:** Metamethod.

**Description:**

&emsp;&emsp;Creates a new Color object with a Color3 object and alpha value.

**Signature:**
```tl
metamethod __call: function(self: ColorClass, color: Color3, a: number): Color
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| color | Color3 | The color as a Color3 object. |
| a | number | [optional] The alpha value of the color ranging from 0 to 255. |

**Returns:**

| Return Type | Description |
| --- | --- |
| Color | A new Color object. |

## __call

**Type:** Metamethod.

**Description:**

&emsp;&emsp;Creates a new `Color` object from an ARGB integer value.

**Signature:**
```tl
metamethod __call: function(self: ColorClass, argb?: number): Color
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| argb | number | [optional] The ARGB integer value to create the color from. Default is 0.<br/>For example 0xffffffff (opaque white), 0x88ff0000 (half transparent red) |

**Returns:**

| Return Type | Description |
| --- | --- |
| Color | A new `Color` object. |

## __call

**Type:** Metamethod.

**Description:**

&emsp;&emsp;Creates a new `Color` object from a RGBA string.

**Signature:**
```tl
metamethod __call: function(self: ColorClass, rgba: string): Color
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| rgba | string | The RGBA string to create the color from, format like "#RRGGBBAA". |

**Returns:**

| Return Type | Description |
| --- | --- |
| Color | A new `Color` object. |

## __call

**Type:** Metamethod.

**Description:**

&emsp;&emsp;Creates a new `Color` object from RGBA color channel values.

**Signature:**
```tl
metamethod __call: function(self: ColorClass, r: number, g: number, b: number, a: number): Color
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| r | number | The red channel value (0-255). |
| g | number | The green channel value (0-255). |
| b | number | The blue channel value (0-255). |
| a | number | The alpha channel value (0-255). |

**Returns:**

| Return Type | Description |
| --- | --- |
| Color | A new `Color` object. |